package com.guigu.eduorder.controller;


import com.baomidou.mybatisplus.extension.api.R;
import com.guigu.eduorder.service.AbOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 订单 前端控制器
 * </p>
 *
 * @author huangsongxi
 * @since 2020-07-16
 */
@Controller
@RequestMapping("/abOrder")
@CrossOrigin
public class AbOrderController {

    @Autowired
    private AbOrderService abOrderService;

    /*//1.生成订单方法
    @PostMapping("createOrder/{courseid}")
    public R saveOrder(@PathVariable String courseId, HttpServletRequest request){
        //abOrderService.createOrders(courseId,JwtUtils.get);
        return R.ok();
    }*/
}

